<!DOCTYPE html>
<html>

<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    

    <title>公告列表</title>
    <link rel="shortcut icon" href="favicon.ico">
    <link href="/static/manager/css/bootstrap.min.css?v=3.3.5" rel="stylesheet">
    <link href="/static/manager/css/font-awesome.min.css?v=4.4.0" rel="stylesheet">
    <link href="/static/manager/css/plugins/footable/footable.core.css" rel="stylesheet">
    <link href="/static/manager/css/animate.min.css" rel="stylesheet">
    <link href="/static/manager/css/style.min.css?v=4.0.0" rel="stylesheet"><base target="_blank">

</head>

<body class="gray-bg">
    <div class="wrapper wrapper-content animated fadeInRight">

            <div class="row">
                <div class="col-sm-12">
                    <div class="ibox float-e-margins">
                        <div class="ibox-title">
                            <h5>公告管理</h5>
                        </div>
                        <div class="ibox-content">

                            <table class="footable table table-stripped toggle-arrow-tiny" data-page-size="8">
                                <thead>
                                <tr>

                                    <th>标题</th>
                                    <th>发布时间</th>
									<th>公告内容</th>
                                    <th>操作</th>
                                </tr>
                                </thead>
                                <tbody>
                                {volist name='list' id='vo'}
                                <tr>
                                    <td>{$vo.title}</td>
                                    <td>{$vo.crtime}</td>
                                    <td>{$vo.content|nohtml}</td>
                                    <td>
									<button type="button" class="btn btn-primary btn-sm" onclick="updata({$vo.id})">编辑</button>
									<button type="button" class="btn btn-default btn-sm" onclick="deletedata({$vo.id})">删除</button>
									</td>
                                </tr>
                                {/volist}
                                </tbody>
                                <tfoot>
                                <tr>
                                    <td colspan="5">
                                        <ul class="pagination pull-right">
                                            {$page}
                                        </ul>
                                    </td>
                                </tr>
                                </tfoot>
                            </table>

                        </div>
                    </div>
                </div>
            </div>
           
        </div>
    <script src="/static/manager/js/jquery.min.js?v=2.1.4"></script>
    <script src="/static/manager/js/bootstrap.min.js?v=3.3.5"></script>
    <script src="/static/manager/js/plugins/footable/footable.all.min.js"></script>
    <script src="/static/manager/js/content.min.js?v=1.0.0"></script>
    <script>
        function deletedata(id) {
            $.post("/manager/Index/gg_dele",{id:id},function(result){
                alert(result);
                window.location.reload();
            });
        }
        function updata(id) {
            window.location.href = "/manager/Index/gg_edit?id="+id;
        }
        $(document).ready(function(){
            $(".footable").footable();$(".footable2").footable();

        });
    </script>
</body>

</html>